package cn.edu.hhu.DAO;

import cn.edu.hhu.Bean.Teacher;

import java.util.List;

/**
 * @anthor: lddd
 * @date: 2020/5/16 - 22:46
 * @description:
 **/
public interface Teacher_infoDao {
    /**
     * 通过tid删除学生
     * @param tid
     * @return
     */
    public boolean deleteTeacherByID(String tid);

    /**
     * 注册一条教师信息
     * @param teacher
     * @return 是否成功
     */
    public boolean insertSingleTeacher(Teacher teacher);

    /**
     * 批量注册多条教师信息
     * @param teachers
     */
    public void batchInsertTeacher(List<Teacher> teachers);

    /**
     * 查询所有教师信息
     * @return
     */
    List<Teacher> findAllTeacher();

    /**
     * 通过教师编号修改教师信息
     * @param teacher
     */
    void modifyTeacherByID(Teacher teacher);

    /**
     * 设置教师编号为tid的账户密码为newPwd
     * @param tid
     * @param newPwd
     * @return
     */
    boolean changeTeacherPassword(String tid,String newPwd);
}
